<?php


namespace app\common\model;


use think\Model;

class AdminModel extends Model
{
    protected $autoWriteTimestamp = true;

    const tableName = 'admin';

    public function getCreateTimeAttr($value)
    {
        return date("Y-m-d H:i:s", $value);
    }

    public static function getMagicTableName()
    {
        return '__' . strtoupper(self::tableName) . '__';
    }
}